package demo.db.hbase.vo;

import org.apache.hadoop.hbase.KeyValue;

import com.alibaba.fastjson.JSONObject;

/**
 * HBASE cell 包装类
 * 
 * @author hanjy
 *
 */
public class CellVO {
    private String family;

    private String qualifier;

    private Long sequenceId;

    private String row;

    private String tags;

    private Long timestamp;

    private String value;

    private KeyValue.Type type;

    public String getFamily() {
        return family;
    }

    public void setFamily(String family) {
        this.family = family;
    }

    public String getQualifier() {
        return qualifier;
    }

    public void setQualifier(String qualifier) {
        this.qualifier = qualifier;
    }

    public Long getSequenceId() {
        return sequenceId;
    }

    public void setSequenceId(Long sequenceId) {
        this.sequenceId = sequenceId;
    }

    public String getRow() {
        return row;
    }

    public void setRow(String row) {
        this.row = row;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public KeyValue.Type getType() {
        return type;
    }

    public void setType(KeyValue.Type type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }

}
